import { apis } from '@/api'
import { TablePage } from '@/components'
import { useSystemProduct } from './useSystemProduct'

/**
 * 系统产品分页
 */
export const SystemProductPage = () => {
  const { queryItems, tableColumns } = useSystemProduct()

  return (
    <TablePage
      api={apis.systemProductApi.findPage}
      queryProps={{
        items: queryItems,
      }}
      tableProps={{
        rowKey: 'id',
        columns: tableColumns,
      }}
    />
  )
}
